package fckeditor.impl;

import javax.servlet.http.HttpServletRequest;

import org.springframework.security.context.SecurityContext;
import org.springframework.security.context.SecurityContextHolder;

import net.fckeditor.requestcycle.UserPathBuilder;

public class UserPathBuilderImpl implements UserPathBuilder {

    @Override
    public String getUserFilesPath(HttpServletRequest req) {
        
    	SecurityContext ctx = SecurityContextHolder.getContext();
        return ctx.getAuthentication().getName();
    }

}
